package com.ttg.web.dao;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ttg.common.entities.BasePage;
import com.ttg.common.enums.AdminTypeEnum;
import com.ttg.model.dto.AdminViewDTO;
import com.ttg.model.pojo.Admin;
import com.ttg.model.vo.AdminIndexVO;

import java.util.List;

/**
 * @author ZQ
 * @version 1.0
 * @Description
 * @date 2021/1/26 13:25
 */
public interface AdminDao extends IService<Admin> {


    boolean saveOrUpdatePwd(Admin admin);



    Integer countByUserName(String admUserName);


    Admin saveAdm(Admin admin);

    Admin findAdmByUserName(String userName);


    BasePage<AdminIndexVO> adminIndexGetPage(BasePage page, Integer status, String admId, String trueName,String userName);

    int countByAdmRoleId(Long admRoleId);
	
	List<Admin> getAdmins(List<Long> admId, Integer admWarn);
}
